/**
 * @BelongsProject: test
 * @BelongsPackage: com.hmall.order.domain
 * @Author: 王明天
 * @CreateTime: 2025/2/19 17:22
 * @Description: Order
 */
package com.hmall.order.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hmall.api.user.userDto.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_order")
public class Order {

    // 订单id
    private Long id;

    // 用户id
    private Long userId;

    // 商品名称
    private String name;

    // 商品价格
    private Long price;

    // 商品数量
    private Integer num;

    // 用户信息
    @TableField(exist = false)
    private User user;
}
